<!DOCTYPE html>
<html lang="en">
	<head>
		<title>米迪</title>
		<meta charset="UTF-8" />
        <meta name="viewport" content="width=device-width, initial-scale=1.0" />
		<link rel="stylesheet" href="__Admin__/css/bootstrap.min.css" />
		<link rel="stylesheet" href="__Admin__/css/bootstrap-responsive.min.css" />
		<link rel="stylesheet" href="__Admin__/css/uniform.css" />
		<link rel="stylesheet" href="__Admin__/css/select2.css" />		
		<link rel="stylesheet" href="__Admin__/css/unicorn.main.css" />
		<link rel="stylesheet" href="__Admin__/css/unicorn.grey.css" class="skin-color" />	
	<meta http-equiv="Content-Type" content="text/html; charset=utf-8" /></head>
	<body>
		
		<include file="Public/head" />
		
		<div id="content">
			<div id="content-header">
				<h1>积分管理</h1>
			</div>
			<div id="breadcrumb">
				<a href="#" class="current">积分列表</a>
			</div>
			<div class="container-fluid">
				<div class="row-fluid">
					<div class="span12">
						<div class="widget-box">
							
							
							<div class="widget-title">
								<span class="icon">
									<i class="icon-th"></i>
									
								</span>
								<h5>积分列表</h5>
							    <span>
							        <h5><a href="{:U('Integral/out',array('type'=>0))}">全部列表</a></h5>
							    </span>
							    <span>
							        <h5><a href="{:U('Integral/out',array('type'=>1))}">兑换现金</a></h5>
							    </span>
							    <span>
							        <h5><a href="{:U('Integral/out',array('type'=>2))}">兑换Q币</a></h5>
							    </span>
							    <span>
							        <h5><a href="{:U('Integral/out',array('type'=>3))}">兑换话费</a></h5>
							    </span>
								 
							</div>	
							<div class="widget-content nopadding">
								<table class="table table-bordered table-striped">
									<thead>
										<tr>
										    <th>用户编号</th>
											<th>用户名称</th>
											<th>用户总积分</th>
											<th>当前申请兑换积分</th>
											<th>当前兑换状态</th>
											<th>兑换处理</th>
											<th>操作</th>
										</tr>
									</thead>
									<tbody>
									<volist name="list" id="vo">
										<tr>
										    <td>{$vo.uid}</td>
											<td>{$vo.uname}</td>					
											<td>{$vo.score}</td>
											<td>{$vo.dangscore}</td>
											<if condition="$vo['status'] == 3">
											<td>申请兑换话费</td>
											<elseif condition="$vo['status'] == 1" />
											<td>申请兑换现金</td>
											<elseif condition="$vo['status'] == 2" />
											<td>申请兑换Q币</td>
											<else />
											<td>无申请</td>
											</if>
											<td>
											<a href="{:U('Integral/update',array('id'=>$vo['uid']))}">处理</a>
											</td>											
											<td>
											<a href="{:U('Integral/content',array('id'=>$vo['uid']))}">积分详情</a>
											</td>
										</tr>
										</volist>
									</tbody>
								</table>  
								<div style="float:right; margin:20px 30px; font-size:18px;">{$page}</div> 								
								
							
							</div>	
						</div>
					</div>
				</div>			
			</div>
		</div>
            <script src="__Admin__/js/jquery.min.js"></script>
            <script src="__Admin__/js/jquery.ui.custom.js"></script>
            <script src="__Admin__/js/bootstrap.min.js"></script>
            <script src="__Admin__/js/jquery.uniform.js"></script>
            <script src="__Admin__/js/select2.min.js"></script>
            <script src="__Admin__/js/jquery.dataTables.min.js"></script>
            <script src="__Admin__/js/unicorn.js"></script>
            <script src="__Admin__/js/unicorn.tables.js"></script>
	</body>
</html>
